#include <stdio.h>

struct s1{
    int i;
    char c;
    int j;
};


struct s2{
    int i;
    int j;
    char c;
};

struct rec
{
    char *a;
    short b;
    double c;
    char d;
    float e;
    char f;
    long g;
    int h;
};


int main(){
    printf("sizeof(s1) = %lu\n", sizeof(struct s1));
    printf("sizeof(s2) = %lu\n", sizeof(struct s2));  
    printf("sizeof(rec) = %lu\n", sizeof(struct rec));  
}

/*

gcc test_struct.c -o prog_test_struct_Og -Og
gcc test_struct.c -o prog_test_struct_O1 -O1
gcc test_struct.c -o prog_test_struct_O2 -O2
.
./prog_test_struct_Og
./prog_test_struct_O1
./prog_test_struct_O2

 */